package com.kuaizu.es.contronller;

import com.kuaizu.es.buis.IProjectBusinessServiceImpl;
import com.kuaizu.es.pojo.PageData;
import kuaizu.common.vo.ProjectVO;
import com.kuaizu.es.pojo.pram.QueryDataPoJectInfoPram;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: wangmx15
 * @date: 2025/8/23
 **/
@RestController
@RequestMapping("/project")
@RequiredArgsConstructor
public class ProjectContronller {
 private final IProjectBusinessServiceImpl projectBusinessService;

    @PostMapping("/queryDatapPojectInfo")
    public PageData<ProjectVO> queryDatapPojectInfo(@RequestBody QueryDataPoJectInfoPram req){
        return projectBusinessService.queryDatapPojectInfo(req);
    }
    @PostMapping("/queryProjectBySkillDetails")
    public PageData<ProjectVO> queryProjectBySkillDetails(@RequestBody QueryDataPoJectInfoPram req){
        return projectBusinessService.queryProjectBySkillDetails(req);
    }

    @PostMapping("/init")
    public void init(){
        projectBusinessService.initEs();
    }
}
